package com.lxj.mapper;

import com.lxj.domain.BusRent;
import com.lxj.dto.BusRentDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lxj
 * @date 2021/6/16 15:43
 */
public interface BusRentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BusRent record);

    int insertSelective(BusRent record);

    BusRent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusRent record);

    int updateByPrimaryKey(BusRent record);

    /**
     * 分页查询
     * @param dto
     * @return
     */
    List<BusRent> selectAll(@Param("query") BusRentDto dto);
}